<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common.jsp"%>
<c:set var="baseUrl" value="${ctxPath }/sys/sysLog" />
<!-- 分页表单：搜索表单必须添加属性： rel="pagerForm"  -->
<%@include file="/pageParameter.jsp" %>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="${baseUrl }/list"
		method="post">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
				    <td>登录账户： <input type="text" name="loginName" value="${entity.loginName}" /></td>
				    <td>真实姓名： <input type="text" name="realName" value="${entity.realName}" /></td>
				    <td>结果码： <input type="text" name="resultCode" value="${entity.resultCode}" /></td>
				    <td>客户端IP： <input type="text" name="clientIp" value="${entity.clientIp}" /></td>
                    <td>
						<div class="buttonActive">
							<div class="buttonContent">
							     <button title="查询" type="submit">查&nbsp;询</button>
							</div>
						</div>
					</td>
                 </tr>
			</table>
		</div>
	</form>
</div>
<div class="pageContent">
<!-- 数据列表上面的功能按钮区 -->
<!-- 	<div class="panelBar"> -->
<!-- 		<ul class="toolBar"> -->
<!-- 		</ul> -->
<!-- 	</div> -->
	<table class="table" width="101%" layoutH="109">
		<thead>
			<tr>
				<th width="4%" >序号</th>
				<th width="10%" orderField="loginName" class="${pageParam.orderField eq 'loginName' ? pageParam.orderDirection : ''}">登录账户</th>
				<th width="10%" orderField="realName" class="${pageParam.orderField eq 'realName' ? pageParam.orderDirection : ''}">真实姓名</th>
				<th width="5%" orderField="clientIp" class="${pageParam.orderField eq 'clientIp' ? pageParam.orderDirection : ''}">客户端IP</th>
				<th width="5%" orderField="resultCode" class="${pageParam.orderField eq 'resultCode' ? pageParam.orderDirection : ''}">结果码</th>
				<th width="15%">操作结果</th>
				<th width="5%" orderField="requestTime" class="${pageParam.orderField eq 'requestTime' ? pageParam.orderDirection : ''}">请求耗时</th>
				<th width="10%" orderField="createTime" class="${pageParam.orderField eq 'createTime' ? pageParam.orderDirection : ''}">操作时间</th>
				<th >操作内容</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${pageBean.recordList}" varStatus="s">
				<!-- 
				当选中一行时,tr上的rel值会自动替换到url变量中.
				注意url变量名{param_id}和tr的target="param_id"保持一致.
				 -->
				<tr target="param_id" rel="${item.id}">
					<td>${s.index + 1}</td>
					<td>${item.loginName}</td>
					<td>${item.realName}</td>
					<td>${item.clientIp }</td>
					<td>${item.resultCode}</td>
					<td>${item.resultText}</td>
					<td>${item.requestTime}</td>
					<td><fmt:formatDate value="${item.createTime}"
					     pattern="yyyy-MM-dd HH:mm:ss" />
			        </td>
			        <td>${item.optContent}</td>
				</tr>
			</c:forEach>
			<c:if test="${pageBean.totalCount==0}"><tr><td>暂无数据</td></tr></c:if>
		</tbody>
	</table>
	<%@include file="/pageBar.jsp" %>
</div>
